package com.jwsoft.manager.common.vo.eduAddressTreeInitial;

import com.bifang.assistant.common.vo.BasePageVO;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 初始地址树表（由edu_address解析生成）QueryVO
 *
 * @author zhiyuan
 * @since 2024-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "EduAddressTreeInitialQueryVO", title = "初始地址树表（由edu_address解析生成）查询VO", description = "初始地址树表（由edu_address解析生成）查询实体类")
public class EduAddressTreeInitialQueryVO extends BasePageVO {

    @Schema(name = "addressId",description = "地址id")
    private Long addressId;

    @Schema(name = "areaCode",description = "行政区划编码")
    private String areaCode;

    @Schema(name = "areaName",description = "组织名称")
    private String areaName;

    @Schema(name = "areaType",description = "行政区划类型 ")
    private String areaType;

    @Schema(name = "contact",description = "联系人")
    private String contact;

    @Schema(name = "cellphone",description = "联系人手机")
    private String cellphone;

    @Schema(name = "phone",description = "联系人电话")
    private String phone;

    @Schema(name = "rate",description = "级别")
    private Integer rate;

    @Schema(name = "orderNo",description = "排序号")
    private Integer orderNo;

    @Schema(name = "primarySchool",description = "小学默认学校组织id")
    private String primarySchool;

    @Schema(name = "middleSchool",description = "中学默认学校组织id")
    private String middleSchool;

    @Schema(name = "parentId",description = "上级地址/区域")
    private Long parentId;

    @Schema(name = "searchTerm",description = "检索项，使用#分割")
    private String searchTerm;

    @Schema(name = "isLeafNode",description = "是否叶子节点")
    private Integer isLeafNode;

    @Schema(name = "fullAddress",description = "完整地址信息")
    private String fullAddress;

    @Schema(name = "majorPointer",description = "映射记录指针，对应映射记录主键address_id")
    private Long majorPointer;

    @Schema(name = "isLastNode",description = "是否最后非叶子节点-original数据检索节点")
    private Integer isLastNode;

    @Schema(name = "eduAddressId",description = "edu_address主键")
    private String eduAddressId;

    @Schema(name = "esStatus",description = "0:未存到original,1:已保存到original,2:保存失败")
    private Integer esStatus;

    @Schema(name = "esMsg",description = "original状态描述")
    private String esMsg;

    @Schema(name = "esTime",description = "original保存时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date esTime;

    private Long delUk;

    @Schema(name = "isChangeNode",description = "是否发生变更")
    private Integer isChangeNode;

    @Schema(name = "leafNum",description = "叶子节点数")
    private Integer leafNum;

    @Schema(name = "parseAddressId",description = "单个地址解析")
    private String parseAddressId;

    @Schema(name = "handleStatus", title = "地址分解状态：0 未处理 1 处理成功 2 处理失败")
    private String handleStatus;

    @Schema(name = "isChangeNode",description = "初始化学区标志")
    private Boolean initialSchoolFlag;

    @Schema(name = "addressIds",description = "重新解析的地址节点id")
    private List<String> addressIds;

}
